Skip to content

框架 swagger

springdoc-openapi v2.8.15

建议可以看一下官网: https://springdoc.org/

依赖一般是:

<dependency>
    <groupId>org.springdoc</groupId>
    <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
    <version>2.2.0</version>
</dependency>

访问接口文档页面

实际我本地使用的链接是类似下面这种格式:

localhost/swagger-ui/index.html

#如果是使用了分组的话,可以是下面这种
localhost/swagger-ui/index.html?urls.primaryName=Internal